package com.gitee.chili.leisure.core;

import com.google.protobuf.InvalidProtocolBufferException;
import io.netty.channel.Channel;

import java.lang.reflect.InvocationTargetException;

/**
 * 消息处理器
 *
 * @author week solider
 * @since 2020.08.28
 */
public interface MessageHandler {

    /**
     * 处理消息的方式
     */
    void onHandler(Packet packet, Channel channel) throws InvocationTargetException, IllegalAccessException, InvalidProtocolBufferException;
}
